package com.ctshk.rpc.workflow.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 审批步骤配置
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-25
 */
@Data
@ApiModel(description="审批步骤配置")
public class ApprovalSettingStepReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "第几步骤")
    private Integer step;

    @ApiModelProperty(value = "步骤名称")
    private String stepName;

    @ApiModelProperty(value = "是否动态设置审批人")
    private Boolean isDynamic;

    @Valid
    @ApiModelProperty(value = "条件设置", required = true)
    private ApprovalSettingConditionReq condition;

    @Valid
    @ApiModelProperty(value = "主审批人设置", required = true)
    private ApprovalSettingMemberReq masterMember;

    @Valid
    @ApiModelProperty(value = "副审批人设置", required = true)
    private ApprovalSettingMemberReq slaveMember;

}
